package com.example.cloud.model.config;

import com.example.cloud.model.common.CommonModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

/**
 * Created by wangtao on 2018/6/12.
 * 库存预警
 */
@Entity(name = "config_inventory_warning")
@Data
@EqualsAndHashCode(callSuper = false)
public class InventoryWarning extends CommonModel {
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;
    // 产品编号
    @Column(name = "item_id")
    private Long itemId;
    // 产品名称
    @Column(name = "item_name")
    private String itemName;
    // 警戒值
    @Column(name = "quantity")
    private int quantity;
    // 开启状态
    @Column(name = "status")
    private int status;
    // 账户编号
    @Column(name = "account_id")
    private Long accountId;
    // 用户编号
    @Column(name = "user_id")
    private Long userId;
    // 组织机构编号
    @Column(name = "organ_id")
    private Long organId;
    // 组织机构名称
    @Column(name = "organ_name")
    private String organName;
}
